package com.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import java.math.BigDecimal;


@XmlAccessorType(XmlAccessType.FIELD)
// 控制JAXB 绑定类中属性和字段的排序
@XmlType(propOrder = {
        "filename",
        "budgetacc",
        "activity",
        "channel",
        "insurance",
        "description",
        "applyamount",
        "freezedamount",
        "usedamount",
        "releasedamount",
        "attribute1",
        "attribute2"})
public class ProjectBudgetRequest {

    private String filename;//文件名(报账头文件名称,以与头文件对应)
    private String budgetacc;//预算科目
    private String activity;//活动
    private String channel;//渠道
    private String insurance;//险种
    private String description;//明细行摘要
    private BigDecimal applyamount;//申请金额
    private String freezedamount;//不传
    private String usedamount;//不传
    private String releasedamount;//不传
    private String attribute1;//不传
    private String attribute2;//不传

    public ProjectBudgetRequest() {
        super();
    }

    public ProjectBudgetRequest(String filename, String budgetacc, String activity, String channel, String insurance, String description, BigDecimal applyamount, String freezedamount, String usedamount, String releasedamount, String attribute1, String attribute2) {
        this.filename = filename;
        this.budgetacc = budgetacc;
        this.activity = activity;
        this.channel = channel;
        this.insurance = insurance;
        this.description = description;
        this.applyamount = applyamount;
        this.freezedamount = freezedamount;
        this.usedamount = usedamount;
        this.releasedamount = releasedamount;
        this.attribute1 = attribute1;
        this.attribute2 = attribute2;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getBudgetacc() {
        return budgetacc;
    }

    public void setBudgetacc(String budgetacc) {
        this.budgetacc = budgetacc;
    }

    public String getActivity() {
        return activity;
    }

    public void setActivity(String activity) {
        this.activity = activity;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getInsurance() {
        return insurance;
    }

    public void setInsurance(String insurance) {
        this.insurance = insurance;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getApplyamount() {
        return applyamount;
    }

    public void setApplyamount(BigDecimal applyamount) {
        this.applyamount = applyamount;
    }

    public String getFreezedamount() {
        return freezedamount;
    }

    public void setFreezedamount(String freezedamount) {
        this.freezedamount = freezedamount;
    }

    public String getUsedamount() {
        return usedamount;
    }

    public void setUsedamount(String usedamount) {
        this.usedamount = usedamount;
    }

    public String getReleasedamount() {
        return releasedamount;
    }

    public void setReleasedamount(String releasedamount) {
        this.releasedamount = releasedamount;
    }

    public String getAttribute1() {
        return attribute1;
    }

    public void setAttribute1(String attribute1) {
        this.attribute1 = attribute1;
    }

    public String getAttribute2() {
        return attribute2;
    }

    public void setAttribute2(String attribute2) {
        this.attribute2 = attribute2;
    }

    @Override
    public String toString() {
        return "ProjectBudgetRequest{" +
                "filename='" + filename + '\'' +
                ", budgetacc='" + budgetacc + '\'' +
                ", activity='" + activity + '\'' +
                ", channel='" + channel + '\'' +
                ", insurance='" + insurance + '\'' +
                ", description='" + description + '\'' +
                ", applyamount=" + applyamount +
                ", freezedamount='" + freezedamount + '\'' +
                ", usedamount='" + usedamount + '\'' +
                ", releasedamount='" + releasedamount + '\'' +
                ", attribute1='" + attribute1 + '\'' +
                ", attribute2='" + attribute2 + '\'' +
                '}';
    }

}
